package com.nbgs.demo.service.Impl;

import com.nbgs.demo.dao.TestMapper;
import com.nbgs.demo.model.User;
import com.nbgs.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TestServiceImpl implements TestService {

    @Autowired
    private TestMapper testMapper;

    @Override
    public List<User> findUsers() {
        return testMapper.findUsers();
    }

    @Override
    public void addUser(User user) {
        testMapper.addUser(user);
    }
}
